package net.csdn.business.common.domain.mirror;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.csdn.business.common.constant.CommonConstants;

import java.io.Serializable;
import java.util.Date;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MirrorListDto implements Serializable {
    private Long id;
    private String repoPath;
    private String githubUrl;
    private String source = "GitHub";
    private String mirrorUrl;
    private String mirrorPath;
    private int status;
    private String statusDesc;
    private String creator;
    private Long projectId;

    @JsonFormat(pattern = CommonConstants.DEFAULT_PATTERN, timezone = CommonConstants.DEFAULT_TIMEZONE)
    private Date createdAt;
    @JsonFormat(pattern = CommonConstants.DEFAULT_PATTERN, timezone = CommonConstants.DEFAULT_TIMEZONE)
    private Date updatedAt;
}